package com.slx.exp1_initializr.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Arrays;

@Component
@ConfigurationProperties(prefix = "student")
public class Student {
    private String stdId;
    private String stdName;
    private String[] hobby;

    @Override
    public String toString() {
        return "Student{" +
                "stdId='" + stdId + '\'' +
                ", stdName='" + stdName + '\'' +
                ", hobby=" + Arrays.toString(hobby) +
                '}';
    }

    public String getStdId() {
        return stdId;
    }

    public void setStdId(String stdId) {
        this.stdId = stdId;
    }

    public String getStdName() {
        return stdName;
    }

    public void setStdName(String stdName) {
        this.stdName = stdName;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }
}
